package com.example.high_slope_electronic_sand_table.slopeDisplacement.dto;

import com.example.high_slope_electronic_sand_table.common.config.CustomFloatSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 边坡位移监测-表面位移监测：地表位移、地表沉降
 */
@Data
@Schema(description = "边坡位移监测")
public class SurfaceDisplacementMonitorDTO {
    @Schema(description = "设备ID")
    private String deviceId; // 设备ID
    @Schema(description = "地表位移")
    @JsonSerialize(using = CustomFloatSerializer.class)
    private Float surfaceDisplacement; // 地表位移
    @Schema(description = "地表位移告警等级")
    private Integer surfaceDisplacementWarningLevel; // 地表位移告警等级
    @Schema(description = "地表沉降")
    @JsonSerialize(using = CustomFloatSerializer.class)
    private Float surfaceSettlement; // 地表沉降
    @Schema(description = "地表沉降告警等级")
    private Integer surfaceSettlementWarningLevel; // 地表沉降告警等级
    @Schema(description = "上报时间")
    private String datetime; // 上报时间
}
